import request from "./request/index.js";

export async function listProfits(data) {
  try {
    const res = await request.post("/profit/list", data);
    return res.data;
  } catch (err) {
    return Promise.reject(err);
  }
}

export async function listGrossProfits(data) {
  try {
    const res = await request.post("/profit/gross/list", data);
    return res.data;
  } catch (err) {
    return Promise.reject(err);
  }
}
